<template>
  <div class="comment-reply">
    <van-nav-bar :title="`${comment.reply_count}条回复`">
      <van-icon slot="left" name="cross" @click="$emit('click-close')" />
    </van-nav-bar>
    <div class="content">
      <commentItem :comment="comment" />
      <commentListfrom :articleId="comment.com_id" :type="'c'" />
    </div>

    <div class="post-warp">
      <van-button size="small" round>写评论</van-button>
    </div>
  </div>
</template>
<script>
import commentItem from '@/components/comment-item'
import commentListfrom from '@/components/comment'
export default {
  name: 'replay',
  props: ['comment'],
  created() {},
  computed: {},
  data() {
    return {}
  },
  methods: {},
  components: { commentItem, commentListfrom }
}
</script>
<div class="post-warp"></div>
<style lang="less" scoped>
.content {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 88px;
  overflow-y: auto;
}
.post-warp {
  height: 88px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #f8f8f8;
  .van-button {
    width: 100%;
  }
}
</style>
